<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" errorPage="500.jsp"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>注册页面</title>
    <link rel="stylesheet" href="css/reset.css">
    <link rel="stylesheet" href="css/reg.css">
    <link rel="stylesheet" href="css/common.css">
    <!-- 小图标 -->
  	<link rel="icon" href="css/favicon.ico" type="image/x-icon" />
    <script src="js/jquery-1.12.4.js"></script>
</head>
<body>
	<!-- 头部 -->
	<div class="header">
    	<div class="header-inner">
	      	<h1>
	        	<a href="index.html" class="logo">太平洋影城</a>
	      	</h1>
      		<div class="nav">
	        	<ul class="navbar">
		          	<li>
		            	<a href="index">首页</a>
		          	</li>
	          		<li>
	            		<a href="hotFilm.do">电影</a>
	          		</li>
	          		<li>
	            		<a href="#">影院</a>
	          		</li>
	          		<li>
	            		<a href="#">演出</a>
	          		</li>
		          	<li>
		            	<a href="billboard.do">榜单</a>
		          	</li>
	          		<li>
	            		<a href="#">热点</a>
	          		</li>
	          		<li>
	            		<a href="#">商城</a>
	          		</li>
	        	</ul>
      		</div>
      		<div class="user-info">
        		<div class="user-avatar J-login">
	          		<c:choose>
	       				<c:when test="${sessionScope.userLogin !=null}">
	         				<img src="${sessionScope.userLogin.uImg}">
	       				</c:when>
	       				<c:otherwise>
	         				<img src="img/top_img/default_head.png">
	       				</c:otherwise>
	     			</c:choose>
	     			<span class="caret"></span>
	     			<c:choose>
	       				<c:when test="${sessionScope.userLogin !=null}">
	         				<ul class="user-menu yes-login-menu">
					           	<li class="text">
					             	<a href="order.do?uid=${sessionScope.userLogin.uId}">我的订单</a>
					           	</li>
					           	<li class="text login-name" >
					             	<a href="userEssential.do?uId=${sessionScope.userLogin.uId}">基本信息</a>
					           	</li>
					           	<li class="text">
					             	<a href="exit.do" class="J-logout">退出登录</a>
					           	</li>
	         				</ul>
	       				</c:when>
				       	<c:otherwise>
				         	<ul class="user-menu no-login-menu">
					           	<li>
					           		<a href="login.jsp">登录</a>
					           	</li>
				         	</ul>
				       	</c:otherwise>
	     			</c:choose>
      			</div>
    		</div>
		    <form action="searchFilm.do" method="post" class="search-form">
		      	<input name="kw" class="search" type="search" maxlength="32" placeholder="找影视剧、影人、影院">
		      	<input class="submit" type="submit" value="">
		    </form>
    		<div class="app-download">
		      	<a href="#">
		        	<span class="iphone-icon"></span>
		        	<span class="apptext">APP下载</span>
		        	<span class="caret"></span>
		        	<div class="download-icon">
		          		<p class="down-title">扫码下载APP</p>
		          		<p class="down-content">选座更优惠</p>
		        	</div>
		      	</a>
    		</div>
  		</div>
	</div>
    <div class="form">
        <h2>
            <span>注册</span>
        </h2>
        <form action="register" method="post" onsubmit="return checkForm()">
            <div class="form-area">
                <div class="form-item">
                    <input type="text" placeholder="昵称" id="nickName" name="nickName" oninput="checkInputNotNull(this,'请告诉我你的昵称吧')">
                    <div class="error"></div>
                </div>
                <div class="register-hidden-gruop"></div>
                <div class="form-item">
                    <input type="text" placeholder="用户名（8-16位英文和数字，不能包含中文和特殊字符）" id="username" name="username" oninput="checkInputNotNull(this,'用户名不能为空')">
                    <div class="error">${param.flag==2?"该用户名已被注册":""}</div>
                </div>
                <div class="register-hidden-gruop">
                    <div class="safe_window">
                        <p>安全系数</p> 
                        <div class="a_pw">
                            <div class="safe_line low"></div>
                            <div class="safe_line middle"></div>
                            <div class="safe_line safe"></div>
                            <span style="color:#bc0001">弱</span>
                        </div>
                    </div>
                </div>
                <div class="form-item">
                    <input type="password" placeholder="密码（6-16个字符组成，区分大小写）" id="password" name="password" oninput="checkInputNotNull(this,'密码不能为空')">
                    <div class="error"></div>
                </div>
                <div class="register-hidden-gruop"></div>
                <div class="form-item">
                    <div class="select clearfix">
                        <div class="select-item">
                            <div class="title">中国大陆</div>
                        </div>
                    </div>
                    <input type="text" placeholder="填写常用的手机号" id="phoneNum" name="phoneNum" oninput="checkInputNotNull(this,'手机号不能为空')">
                        <div class="error">${param.flag==3?"该手机号已被注册":""}</div>
                </div>
                <div class="register-hidden-gruop"></div>
                <div class="form-item">
                    <input type="text" placeholder="请输入验证码" id="verify" name="verify" oninput="checkInputNotNull(this,'验证码不能为空')">
                    <div class="error">${param.flag==1?"验证码错误":""}</div>
                    <img src="verify.jpg" id="verifyImg" onclick="changeImg()" title="看不清？换一张">
                </div>
                <div class="readme">
                    <label>
                        <input type="checkbox" id="checkbox">
                        <span class="checkbox"></span>
                        <span>我已同意
                            <a href="">《猫眼电影用户使用协议》</a>
                            和
                            <a href="">《猫眼电影隐私政策》</a>
                        </span>
                    </label>
                </div>
                <div class="form-item">
                    <button disabled class="fill">注册</button>
                </div>
                <div class="readme txtright">
                    <a href="login.jsp">已有账号，直接登录&gt;</a>
                </div>
            </div>
        </form>
    </div>
<!-- 底部 -->
	<div class="footer">
    	<div class="content">
      		<div class="moduleBox">
        		<div class="informationBox">
          			<div class="copy_van">
            			<a class="ycgg" href="">
            				<span>影城公告</span>
            			</a>
            			<ul>
              				<li>影城公告</li>
            			</ul>
          			</div>
          			<div class="copy_van">
            			<a class="ycgg" href="">
            				<span>会员中心</span>
            			</a>
			            <ul>
			              	<li>加入会员</li>
			              	<li>会员活动</li>
			              	<li>会员优惠</li>
			            </ul>
          			</div>
          			<div class="copy_van">
            			<a class="ycgg" href="">
            				<span>影片资讯</span>
            			</a>
			            <ul>
			              	<li>正在热映</li>
			              	<li>即将上映</li>
			            </ul>
          			</div>
		          	<div class="copy_van">
		            	<a class="ycgg" href="">
		            		<span>影城活动</span>
		            	</a>
		            	<ul>
		              		<li>影城活动</li>
		              		<li>电影资讯</li>
		            	</ul>
		          	</div>
		          	<div class="copy_van">
		            	<a class="ycgg" href="">
		            		<span>关于我们</span>
		            	</a>
			            <ul>
			              	<li>影城介绍</li>
			              	<li>影院介绍</li>
			              	<li>联系我们</li>
			            </ul>
		          	</div>
        		</div>
        		<div class="abc">
          			<div class="textFloat">
            			<div class="erwei1">
                        	<span class="spans ">
                               	<img class="img1" src="img/foot_img/wxerweima.png" alt="">
                            </span>
              				<span class="spans spanss">
                            	<a href="">微信在线购票</a>
                            </span>
            			</div>
            			<div class="erwei2">
                            <span class="spans">
                        		<img class="img1" src="img/foot_img/xcx.jpg" alt="">
                            </span>
              				<span class="spans spanss">
                                <a href="">小程序在线购票</a>
                            </span>
            			</div>
          			</div>
        		</div>
        		<div class="right_information">
		          	<ul class="ul1">
		            	<li class="lis1">连锁热线：</li>
		            	<li class="lis2">400-850-3366</li>
		          	</ul>
		          	<ul class="ul1">
		            	<li class="lis3">官方微信：</li>
		            	<li class="lis4">搜索“猫眼电影”</li>
		          	</ul>
        		</div>
		        <div class="top_btn">
                    <span>
                       	<a href="javascript:void(0)" id="top">TOP</a>
                    </span>
		        </div>
      		</div>
	      	<div class="foot_text">
	       		<div class="foot"> 版权所有(C)猫眼电影投资有限公司　　技术支持：3-1-501</div>
      		</div>
    	</div>
  	</div>
</body>
<script src="js/reg.js"></script>
<script src="js/common.js"></script>
</html>